home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 125 / MOBICLIC 125.ISO / pc / DATA / DSS125 / DSS125_03 / DSS125_03.swf / scripts / frame_68 / DoAction.as
Text File  |  2010-06-14  |  2KB  |  66 lines

  1. function initBT_REJOUER()
  2. {
  3.    BT_REJOUER._alpha = 100;
  4.    BUG._visible = false;
  5.    SPAM._visible = false;
  6.    SPAM_02._visible = false;
  7.    SPAM_03._visible = false;
  8.    SPAM_04._visible = false;
  9.    WIKI._visible = false;
  10.    var _loc2_ = this.BT_REJOUER;
  11.    _loc2_.onRollOver = function()
  12.    {
  13.       joueBruitage({nomSon:"B_JOUER"});
  14.       gereTextes.afficheIB({mc:this,codeIB:"IB_30"});
  15.       this.gotoAndPlay("E2");
  16.       gereCursor(2);
  17.    };
  18.    _loc2_.onRollOut = _loc2_.onDragOut = function()
  19.    {
  20.       stopBruitage({nomSon:"B_JOUER"});
  21.       gereTextes.masqueIB({mc:this,codeIB:"IB_30"});
  22.       this.gotoAndPlay("E1");
  23.       gereCursor(1);
  24.    };
  25.    _loc2_.onPress = function()
  26.    {
  27.       stopBruitage({nomSon:"B_JOUER"});
  28.       gereTextes.masqueIB({mc:this,codeIB:"IB_30"});
  29.       this.gotoAndPlay("E1");
  30.       gereCursor(1);
  31.       initJeu();
  32.       gotoAndStop("JEU_01");
  33.       play();
  34.       gJeu = 1;
  35.       tirageJeu();
  36.       joueSon({nomSon:"02_R2",actionFin:"RIEN"});
  37.       desactiveClip(this);
  38.    };
  39. }
  40. switch(gScore)
  41. {
  42.    case 0:
  43.       var nom_du_son = "E1_BG";
  44.       SPAM._visible = true;
  45.       BUG._visible = true;
  46.       break;
  47.    case 1:
  48.    case 2:
  49.       var nom_du_son = "E2_BG";
  50.       SPAM_02._visible = true;
  51.       BUG._visible = true;
  52.       break;
  53.    case 3:
  54.    case 4:
  55.       var nom_du_son = "S1_BG";
  56.       SPAM_03._visible = true;
  57.       BUG._visible = true;
  58.       break;
  59.    case 5:
  60.       var nom_du_son = "S2_WK";
  61.       SPAM_04._visible = true;
  62.       WIKI._visible = true;
  63. }
  64. joueSon({nomSon:nom_du_son,actionFin:"initBT_REJOUER"});
  65. stop();
  66.